<template>
    <div class="basicDetail">
        <div v-for="item in contlist" class="lfirst">
            <span>{{item.label}}</span>
            <div v-for="itemb in item.chilren" class="lsec">
                {{itemb.label}}
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "basicDetail",
        data() {
            return {
                contlist: [
                    {
                        label: '1.基本信息', islabel: false,
                        chilren: [
                            {label: '姓名', islabel: false},
                            {label: '性别', islabel: false},
                            {label: '出生年份', islabel: false},
                            {label: '所在城市', islabel: false},
                            {label: '期望职位', islabel: false},
                            {label: '期望薪资', islabel: false}
                        ]
                    },
                    {
                        label: '2.知识与技能', islabel: false,
                        chilren: [
                            {label: '教育经历', islabel: false},
                            {label: '职称', islabel: false}
                        ]
                    },
                    {
                        label: '3.项目经历', islabel: false,
                        chilren: [
                            {label: '项目名称', islabel: false},
                            {label: '项目时间', islabel: false},
                            {label: '工作内容', islabel: false}
                        ]
                    }
                ]
            }
        }
    }
</script>

<style lang="scss" scoped>
    .basicDetail{
        display: flex;
        flex-direction: column;
    }
    .basicDetail>div{
        margin-left:15px;
        margin-top: 15px;
        margin-bottom: 10px;
        div{
            margin-top: 10px;
            margin-bottom: 10px;
            margin-left:22px;
        }
    }
.lfirst{
    font-size: 14px;
    font-weight: bold;
}
    .lsec{
        font-size:12px;
    }
</style>
